﻿using System;

namespace Narwhunderful.Aphelia.Framework.Net
{

    public enum NarsockState
    {
        Closed,
        Closing,
        Connecting,
        ResolvingHost,
        HostResolved,
        Connected,
        Listening,
    }

    public class NarsockStateChangedEventArgs : EventArgs
    {

        NarsockState _oldState = NarsockState.Closed;
        public NarsockState OldState
        {
            get
            {
                return _oldState;
            }
            set
            {
                _oldState = value;
            }
        }

        NarsockState _state = NarsockState.Closed;
        public NarsockState State
        {
            get
            {
                return _state;
            }
            set
            {
                _state = value;
            }
        }

        public NarsockStateChangedEventArgs(NarsockState newState, NarsockState oldState)
            : base()
        {
            _state = newState;
            _oldState = oldState;
        }

    }

}
